package com.wbl.tijianssm.controller;

import com.wbl.tijianssm.pojo.Cireport;
import com.wbl.tijianssm.pojo.Orders;
import com.wbl.tijianssm.response.ApiRestResponse;
import com.wbl.tijianssm.service.CidetailedreportService;
import com.wbl.tijianssm.service.CireportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/report")
@RestController
public class ReportController {

    @Autowired
    CidetailedreportService cidetailedreportService;

    @Autowired
    CireportService cireportService;

    @ResponseBody
    @PostMapping("/getReportList")
    public ApiRestResponse getReportList(@RequestBody Orders orders) throws Exception {
        return cireportService.getReportList(orders);
    }


}
